<?php

/**
    Author: %Author%
    Licence: %Licence%
    Website: %web%
**/

// No direct access to this file
defined('_JEXEC') or die('Restricted access');

jimport('joomla.application.component.modellist');


class %Comp_name%Model%name% extends JModelItem{
	
	protected $_context = '%comp_name%.%name%';

	protected function _getListQuery() {
		// Create a new query object.
		return "%sql%"
	}

	protected function _populateState() {
		// Initialize variables.
		$app = JFactory::getApplication('administrator');
		// Load the list state.
		$this->setState('list.start', $app->getUserStateFromRequest($this->_context . '.list.start', 'limitstart', 0, 'int'));
		$this->setState('list.limit', $app->getUserStateFromRequest($this->_context . '.list.limit', 'limit', $app->getCfg('list_limit', 25), 'int'));
	}
}

